package com.gxl.design.singlepattern;

public class SingleClass {

    private static SingleClass singleClass = new SingleClass();

    private SingleClass(){}

    public static SingleClass getInstance(){
        return singleClass;
    }

    public void printString(){
        System.out.println("i am singleClass!");
    }

}
